package com.oak.broke.model.vip.v1;

import com.oak.broke.model.vip.service.IVipRightsService;
import com.oak.broke.model.vip.vo.api.VipRightsVO;
import com.oak.broke.model.vip.base.ResponseMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author tanghan
 * @Description 会员权益api
 * @date 2023/04/21/ 09:38:00
 */
@RestController
@RequestMapping("/api/v1/vip/rights")
public class VipRightsV1Api {

    @Autowired
    private IVipRightsService vipRightsService;

    @GetMapping("/list")
    public ResponseMessage<List<VipRightsVO>> list() {
        return ResponseMessage.success(vipRightsService.listVipRights());
    }
}
